QT += widgets
QT += network

TEMPLATE = lib
DEFINES += PLUGINLOGIN_LIBRARY

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ZlibUtil.cpp \
    binarystreamreader.cpp \
    binarystreamwriter.cpp \
    ciusocket.cpp \
    cminibuffer.cpp \
    pluginlogin.cpp \
    registerdialog.cpp \
    zlib1.2.11/adler32.c \
    zlib1.2.11/compress.c \
    zlib1.2.11/crc32.c \
    zlib1.2.11/deflate.c \
    zlib1.2.11/gzclose.c \
    zlib1.2.11/gzlib.c \
    zlib1.2.11/gzread.c \
    zlib1.2.11/gzwrite.c \
    zlib1.2.11/infback.c \
    zlib1.2.11/inffast.c \
    zlib1.2.11/inflate.c \
    zlib1.2.11/inftrees.c \
    zlib1.2.11/trees.c \
    zlib1.2.11/uncompr.c \
    zlib1.2.11/zlibdemo.c \
    zlib1.2.11/zutil.c

HEADERS += \
    IUProtocolData.h \
    Msg.h \
    PluginLogin_global.h \
    Utils.h \
    ZlibUtil.h \
    binarystreamreader.h \
    binarystreamwriter.h \
    ciusocket.h \
    cminibuffer.h \
    pluginlogin.h \
    registerdialog.h \
    zlib1.2.11/crc32.h \
    zlib1.2.11/deflate.h \
    zlib1.2.11/gzguts.h \
    zlib1.2.11/inffast.h \
    zlib1.2.11/inffixed.h \
    zlib1.2.11/inflate.h \
    zlib1.2.11/inftrees.h \
    zlib1.2.11/trees.h \
    zlib1.2.11/zconf.h \
    zlib1.2.11/zlib.h \
    zlib1.2.11/zutil.h

LIBS +=-lws2_32

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

FORMS += \
    pluginlogin.ui \
    registerdialog.ui

#/lib/SomeLib.dll $$OUT_PWD/lib/SomeLib.dll

DISTFILES += \
    zlib1.2.11/文件概览.txt
